package nasif.cn.imagewikis.entity;

public abstract class BaseExample {
	private Long pageSize = 10L;
	private Long pageNo = 1L;
    protected Long start;
    protected Long offset;
	
	public Long getPageSize() {
		return pageSize;
	}
	public void setPageSize(Long pageSize) {
		this.pageSize = pageSize;
	}
	public Long getPageNo() {
		return pageNo;
	}
	public void setPageNo(Long pageNo) {
		this.pageNo = pageNo;
		start = (pageNo-1)*pageSize;
		offset = pageSize;
	}
	public Long getStart() {
		return start;
	}
	public void setStart(Long start) {
		this.start = start;
	}
	public Long getOffset() {
		return offset;
	}
	public void setOffset(Long offset) {
		this.offset = offset;
	}
}
